import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class AroutePage extends StatefulWidget {
  final arguments;

  // const SearchPage({Key? key}) : super(key: key);
  AroutePage({this.arguments});

  @override
  _AroutePageState createState() => _AroutePageState(arguments: this.arguments);
}

class _AroutePageState extends State<AroutePage> {
  // String myTitle;

  final arguments;

  _AroutePageState({this.arguments});

  // _SearchPageState({this.myTitle});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      floatingActionButton: FloatingActionButton(
        onPressed: () {
          Navigator.of(context).pop();
        },
        child: Text("返回"),
      ),
      appBar: AppBar(
        title: Text("${arguments != null ? arguments['id'] : 0}"),
      ),
      body: Text("我是路由跳转"),
    );
  }
}
